﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Web4Comment.SNSAPI
{
    public interface ISerive
    {
        T HttpPost<T>(string partUrl, IDictionary<object, object> dictionary) where T : class;
        T HttpGet<T>(string partUrl, IDictionary<object, object> dictionary) where T : class;
    }

    public interface ISnsSerive
    {
        void GetAuthorizationCode();
        
        string GetAccessTokenByAuthorizationCode(string code);

        bool isConnect();

        Object Users_Show(long uid);

        String getUidByToken();

        Object Friendships_Friends(long uid, int? count, int? cursor);

        String Account_Get_Uid();

        Object getAccessToken();

        String getSnsName();
    }
    public interface IHttpMethod
    {
        string HttpPost(string url, string param);
        string HttpPost(string url, IDictionary<object, object> param, byte[] fileByte);
        string HttpGet(string url);        
    }
}
